package com.wfit.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.print.Doc;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("mall_orders")
public class Order {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id; // 订单ID
    @TableField("order_no")
    private String orderNo; // 订单号
    @TableField("receiver")
    private String receiver; // 收货人
    @TableField("address")
    private String address; // 收获地址
    @TableField("phone")
    private String phone; // 手机号
    @TableField("create_time")
    private LocalDateTime createTime; // 创建时间
    @TableField("creator")
    private String creator; // 创建人
    @TableField("status")
    private Integer status; // 订单状态（待接单, 派送中, 已完成, 已取消）
    @TableField("all_count")
    private Integer allCount;
    @TableField("all_price")
    private Double allPrice;
    @TableField("pay_type")
    private String payType;
    @TableField("true_price")
    private Double truePrice;
    @TableField("remark")
    private String remark;
    @TableField("discount")
    private Double discount;
    @TableField("delivery")
    private Double delivery;
    @TableField("before_status")
    private Integer beforeStatus;
}